package com.myproject.mall.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CouponRuleType {
    CATEGORY(0, "类型限制"),
    SHOP(1, "商家限制"),
    GOODS(2, "商品限制"),
    BRAND(3, "品牌限制"),
    UNLIMITED(4, "无限制");

    @EnumValue
    private final Integer code;
    @JsonValue
    private final String message;
}
